import Vue from 'vue'
import Router from 'vue-router'
import Msite  from '../pages/Msite/Msite.vue'
import Search  from '../pages/Search/Search.vue'
import Order  from '../pages/Order/Order.vue'
import Profile  from '../pages/Profile/Profile.vue'
import Login  from '../pages/login/login.vue'



Vue.use(Router)

export default new Router({
  routes: [
    {path:'/',redirect:'/msite'},
    {
      path: '/msite',
      name: 'msite',
      component: Msite,
      meta:{requiresAuth:true}
    },
    {
      path: '/search',
      name: 'search',
      component: Search,
      meta:{requiresAuth:true}
    },
    {
      path: '/order',
      name: 'order',
      component: Order,
      meta:{requiresAuth:true}
    },
    {
      path: '/profile',
      name: 'profile',
      component: Profile,
      meta:{requiresAuth:true}
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
  ]
})
